package com.bs.product.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bs.product.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bs.product.entity.dto.ProductDto;
import org.apache.ibatis.annotations.Param;
import sun.invoke.util.Wrapper;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lukang
 * @since 2022-11-05
 */
public interface IProductService extends IService<Product> {
    public Product getById(Long id);
    //定义链表的查询所有
    public List<Product> lbgeAll();
    //链表带条件查询
    public List<Product> lbSearch(ProductDto dto);
    //联表带条件查询分页
    public IPage<Product> lbSearch(IPage<Product> page,ProductDto dto);


    public  IPage<Product> qwpage(IPage<Product> page, @Param("ew") LambdaQueryWrapper<Product> queryWrapper);
}
